I'm using perspective app to upload an image to my database but when I captured an image from my phones camera it always turn sideways even if my phone orientation is locked to Portrait mode.
I don't think there's anything wrong with your script or Ignition here. Your phone just happens to be giving you back rotated images. You don't really have any control over that.
You could maybe have an option somewhere on the view where you're uploading the file to preview it, see if the orientation is correct, then rotate it (somewhat involved code) and store the 'corrected' image to the DB.
I viewed the data (blob) in MySQL and it shows sideways but when I saved it to my computer it shows original orientation.
I will check the other options.
Thanks for your input Sir PGriffith