Quantcast
Channel: WinDev Forum
Viewing all articles
Browse latest Browse all 1914

[WM21] Image to Android Database

$
0
0
i have been running into a wall here. i have created a window for my android app to take pictures.
i would like the picture to not save permanently to the android filesystem or gallery.

once i click on my "capture button", i would like the image to be added as what i can assume from reading all over this forum and others to use a binary memo, using the HLinkMemo function.

however i am not exactly sure on what to do. i have read through the HLinkMemo help page on doc.windev.com but nothing i do seems to be working.

i have tried a very basic approach of creating a temp image then pushing it to the local android database.

img_photo1 is Image = VideoCapture(CAM_Camera,"temp_image",viPictureCapture)
IF HLinkMemo(BinFile,bin_data,"temp_image",hMemoImg) = True THEN
Info("Success!")
END
ELSE
Info("Failed!")
END

anytime i try to use the HAdd function i get returned with an error of "Unable to open the <!s!> file and the app crashes.

i am still kinda new to this and this is the only function of my andriod app that is not working as intended.

Any suggestions?
i have read through the HLinkMemo help on doc.windev.com

Viewing all articles
Browse latest Browse all 1914

Trending Articles