![]() |
romaldus 9/12/2016 |
L
|
laserray author 9/13/2016 |
Check my post here: http://www.asprunner.com/forums/topic/22846-read-image-exif-and-save-exif-value-to-database/
|
![]() |
lefty 9/13/2016 |
Appreciate the response. I reviewed many posts. Yours is the same as the others, but you add EXIF data. I don't need that. I do have two extra data fields to be filled, usrName, and thunbnails. It seems when I add thumbnails to the code the my_json_encode breaks. I read similar problems by another user with no solution. Either I made a simple coding mistake, or more is going on than I understand. If I fill "Picture1" field data with the correct values, the pictures will display correctly. The problem is the code above will NOT store the encoded data. Yet the same code works for pdf's. Confused.....
|
L
|
laserray author 9/13/2016 |
Have you tried this without the pdf part . Just test with thumbnails and pics to see if it works . I would split theese into three different encode/decodes in the same event. I also don't see where the if ($values['W9Form']<> $oldvalues['W9Form']); ends ( you returned true ) without ending pdf's. also are the extensions for photos ending with jpeg or jpg. since you hardcoded jpg. And lastly are you using absolute path. ? If userfiles is outside your root you need to use the absolut path to your server folder. like C:\\Inetpub\\vhosts\\yourwebsite\\userfiles/pictures1/PN".$values["PartNo"]."_".$i."_1.jpg"; using absolute path worked better for me plus better security. And lastly if it is not saving to database , what database are you using .for example, Memo in MS Access, Mediumtext in MySQL, TEXT or Varchar(max) in SQL Server. You also need GD library installed on server for thumbnails. hope one of these options help. I tried blob fields in the past and have had issues with the above code you supplied.
|
L
|
laserray author 9/13/2016 |
OK, after the above suggestions. I found.... |
L
|
laserray author 9/14/2016 |
Thanks, I got it. |
![]() |
romaldus 9/14/2016 |
Thanks, I got it. Place the code in the wrong event. The field was being written over. <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=80302&image=1&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> <img src='https://asprunner.com/forums/file.php?topicimage=1&fieldname=reply&id=80302&image=2&table=forumreplies' class='bbc_emoticon' alt=':rolleyes:' /> romaldus, kept reading your post over, and over. John, Thanks Learned a little bit more.
|