Skip to main content
New Participant
March 21, 2022
Question

Import Image and export as Txt

  • March 21, 2022
  • 1 reply
  • 279 views

Hi, 

I like to create a form where I can import an image and text by a user and export those inputs in txt file. 

For the image import i'm currently using the "event.target.buttonImportIcon()" in JS and for the export to a txt-file I use JS to write the user input into a variable which is saved in the text file. 

Is it possbile to process the imported image in any way? I thought of exporting it as a base64 text for example. Where and how is the image saved when using "buttonImportIcon()") I tried "var photo = (event.target.buttonImportIcon());" and exporting 'photo' but the output is just "0. 

Thanks for any help in advance! 

This topic has been closed for replies.

1 reply

try67
Adobe Expert
March 23, 2022

There's no easy way of exporting the selected image from a button, if that's what you mean.

And there's absolutely no way of knowing what its location on the local computer was, if you use buttonImportIcon.