Indigo Rose Software

Professional Software Development Tools

 
Results 1 to 3 of 3
  1. #1
    Join Date
    May 2005
    Posts
    1,115

    Binary file into string, then back

    Is it possible to load a binary file into string in APMS,
    and then write it back to some other file?
    Never know what life is gonna throw at you.
    (Based on a true story.)

  2. #2
    Join Date
    Jan 2000
    Posts
    2,002
    What sort of string do you want it in? Do you want to use String actions on it? Do you want to show it on the screen? Or do you just want to read from one file and write to another?

    Lua's built-in io library supports reading binary files to a string. In Lua strings are not NULL-terminated so they can actually store non-ASCII bytes.

  3. #3
    Join Date
    May 2005
    Posts
    1,115
    Basically I want to, for example, throw .jpg into MySQL's BLOB field, and be able to retrieve it.
    Never know what life is gonna throw at you.
    (Based on a true story.)

Similar Threads

  1. Audio Tracks Project
    By Michael in forum AutoPlay Media Studio 5.0
    Replies: 7
    Last Post: 03-18-2004, 10:58 PM
  2. HOWTO: Create a Project Template
    By Support in forum AutoPlay Media Studio 4.0 Examples
    Replies: 0
    Last Post: 10-28-2002, 01:49 PM
  3. Can search allow manual browse even if file is found?
    By RichardShaw in forum Setup Factory 5.0
    Replies: 2
    Last Post: 08-28-2000, 06:08 PM
  4. Replies: 0
    Last Post: 08-17-2000, 02:29 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts