Page 1 of 3

DATA_viaJPG for multiple files

Posted: Sun Aug 13, 2017 2:51 pm
by Dutchman
The functions for transfer of data via JPG-files from viewtopic.php?f=20&t=1888 have been extended with find and select functions in order to simplify handling of multiple files.
Programs and function libs are collected in the folder DATA_viaJPG.
The folder DATA_viaJPG can be downloaded from https://www.dropbox.com/sh/vkzgbjq4johu ... jfusa?dl=0
The find and select functions originate from viewtopic.php?f=20&t=1530 with a specific function for the buttons.
After selection of multiple files the button "Done" will start the process.
The process is logged to the screen and to the file "processed.info'.

20180723
• Some small errors and imperfections have been repaired. The DropBox folder "DATA_viaJPG" (https://bit.ly/2uK3blF) has been updated.
• In addition, a variant has been created in which the data is stored within the image description in COM (comment) segment(s). It can be found on Dropbox in the folder "DATA_viaJPGcom" (https://bit.ly/2uLwSTi)
screenshots.PNG
screenshots.PNG (633.54 KiB) Viewed 4790 times

Re: DATA_viaJPG for multiple files

Posted: Sun Aug 13, 2017 6:37 pm
by rbytes
The 'Find and process.sb' program is quitting with 'path/file not found' errors during processing. I installed the DATA_viaJPG folder in my folder "Selected Utilities", located at the the root of my Smart Basic drive. I first tried processing the Example.sb file in the DATA_viaJPG folder. On the second try, I used your back arrow key to move up to the Selected Utilities folder and selected some files from it. In both cases I got the error. Attached are the screenshots.

There is no DATA_JPG folder inside the DATA_viaJPG folder, although I can see in the error messages that the program is trying to read data jpgs from it. Apparently the program should have created it and saved the data jpgs there, but it didn't.

Re: DATA_viaJPG for multiple files

Posted: Sun Aug 13, 2017 7:19 pm
by rbytes
I just tried moving the DATA_viaJPG folder to the Smart Basic root drive. I still get the same errors. Maybe there is some component missing?

Re: DATA_viaJPG for multiple files

Posted: Mon Aug 14, 2017 7:11 am
by Dutchman
The error-message "Error reading file …" should have been "Error writing file …"
Folders are not automatically created. So files are not written if the location doesn't exist.
So the folders DATA_JPG and DATA_Extract should be present.
I added them to the DropBox-folder.

Re: DATA_viaJPG for multiple files

Posted: Mon Aug 14, 2017 2:05 pm
by rbytes
It is all working very well now. Thanks, Ton.

Re: DATA_viaJPG for multiple files

Posted: Tue Aug 15, 2017 8:30 am
by GeorgeMcGinn
Hi, the link gets a message that says it no longer exists.

Can you provide another one?
Dutchman wrote:
Sun Aug 13, 2017 2:51 pm
The functions for transfer of data via JPG-files from viewtopic.php?f=20&t=1888 have been extended with find and select functions in order to simplify handling of multiple files.
Programs and function libs are collected in the folder DATA_viaJPG.
The folder DATA_viaJPG can be downloaded from https://www.dropbox.com/sh/b5e4vk9eo8mh ... LgjUa?dl=0
The find and select functions originate from viewtopic.php?f=20&t=1530 with a specific function for the buttons.
After selection of multiple files the button "Done" will start the process.
The process is logged to the screen and to the file "processed.info'.


screenshots.PNG

Re: DATA_viaJPG for multiple files

Posted: Tue Aug 15, 2017 10:26 am
by Dutchman
GeorgeMcGinn wrote:
Tue Aug 15, 2017 8:30 am
Hi, the link gets a message that says it no longer exists.
Can you provide another one?
I don't understand how that happened. The link is active again.

Re: DATA_viaJPG for multiple files

Posted: Tue Aug 15, 2017 2:29 pm
by rbytes
As always, your code is very elegant. In particular, the routine you use for creating the buttons is very efficient, and I would like to adapt it for my next project. :idea:

Re: DATA_viaJPG for multiple files

Posted: Tue Aug 15, 2017 2:36 pm
by Dutchman
rbytes wrote:
Tue Aug 15, 2017 2:29 pm
As always, your code is very elegant. In particular, the routine you use for creating the buttons is very efficient, and I would like to adapt it for my next project. :idea:
I will be very honored to find it in your program :D

Re: DATA_viaJPG for multiple files

Posted: Tue Jun 19, 2018 3:13 pm
by rbytes
I decided to see if I could use your MakeInstall and DATA_viaJPG programs together to transfer GigBook entries between my iPad and my iPhone X. The idea works when I test the process on my iPad.

First I run MakeInstall and generate the three files needed to store and regenerate the folder "gigbook-data".
Now I run DATA_viaJPG and select those three files. It creates 3 JPGs containing the data for those files and stores them in folder "DATA_JPG"

I run DATA_viaJPG again, navigate to "DATA_JPG" and select the three JPGs one-by-one. it extracts and saves the three original MakeInstall files to the folder DATA_Extract.

Finally I enter the folder and run "Install-gigbook-data.sb"
My "gigbook-data" folder appears.

So far so good.
Now to transfer the JPGs to my iPhone X. I made this short program (located in the DATA_JPG folder) to export them to the Camera Roll:

Code: Select all

ALBUM EXPORT "DATA_Install-gigbook-data.sb.JPG"
ALBUM EXPORT "DATA_gigbook-data.archive.JPG"
ALBUM EXPORT "DATA_gigbook-data.contents.JPG"
 
And this program to run on my iPhone to import them into DATA_JPG:

Code: Select all

ALBUM IMPORT "DATA_Install-gigbook-data.sb.JPG"
ALBUM IMPORT "DATA_gigbook-data.archive.JPG"
ALBUM IMPORT "DATA_gigbook-data.contents.JPG"
When I run it, I have to manually select the photos, but since they are identified with text I have no problem selecting them in the right order.

And here is where things go sideways.

When I run DATA_viaJPG and select those three JPGs, somehow they have lost their data! The attached image shows the error messages.