2 Replies Latest reply on Oct 27, 2010 6:11 AM by Gurdeep Singh

    [FB4 - Mac/Win] Managing local files with Extension Builder

    Emanuele Radaelli Level 1

      Hi,

      I'm developing an InDesign CS5 Extension with FB4 and I have to say that as a Switchboard/PatchPanel user I'm really happy to be able to work with InDesign DOM inside Flash applications.

      Everything is going just fine except for one "little" problem that's driving me crazy.

      Basically my extension read an open InDesign document and upload every image within the document to a server using a WebService.

      One of the parameter of this WebService is the image file data encoded in base64.

      The question is:

      how can I get the image content as string in order to convert it to base64 and send it to server?

      I have the image file path but it looks like it's not possible to read local files, I know - it's an old security issue, but it looks also that other extensions (Kuler) are able to write files in system folders.

      So far I tried building a function in JS and use a doScript in mxml but it doesn't work and so does the fileReference method.

      Is there any workaround fot this?

       

      Thanks