Results 1 to 5 of 5
  1. #1
    cindercat2001 is offline Novice
    Windows 10 Access 2007
    Join Date
    Nov 2023
    Posts
    1

    Photo Attachment

    Hello,

    I'm attaching photos to customers in our database but some times the photo is turned upside down.
    I have try to open photo, rotate photo and save photo, But the photo stays upside down.



    Is there something I can do to photos before attaching them to make them be right side up?

    I'm have taught myself how to build the database for our company.
    So I'm thinking this is probably user error.

    Thank You for any advise!
    (side note, I do not understand writing code that well. Please keep me from having to do it.)

  2. #2
    June7's Avatar
    June7 is online now VIP
    Windows 10 Access 2010 32bit
    Join Date
    May 2011
    Location
    The Great Land
    Posts
    52,752
    By "attaching" do you mean Attachment data type field?

    Open and rotate where?

    Exactly how are you displaying photo - with Image control?

    Consider that saving objects in db uses up Access 2GB size limit.
    How to attach file: http://www.accessforums.net/showthread.php?t=70301 To provide db: copy, remove confidential data, run compact & repair, zip w/Windows Compression.

  3. #3
    Micron is online now Virtually Inert Person
    Windows 10 Access 2016
    Join Date
    Jun 2014
    Location
    Ontario, Canada
    Posts
    12,650
    As noted, storing files in Access tables is not a good idea. If you did that, then opened the file (e.g. in image editing software) and rotated it, that image is not the one you stored. You'd have to delete it in Access and re-enter it in your table. Best to link to images stored on a hard drive so that a) they are current, and b) to keep the db size from getting too large.
    The more we hear silence, the more we begin to think about our value in this universe.
    Paraphrase of Professor Brian Cox.

  4. #4
    Join Date
    Jun 2022
    Posts
    4
    Photos taken with digital cameras or cell phones today have the image orientation stored in the EXIF data.
    Modern photo viewing applications read this data and rotate the photo accordingly for viewing.
    In Access, it is possible to use the WIA libraries to read the orientation from the EXIF and rotate the image.

  5. #5
    isladogs's Avatar
    isladogs is offline MVP / VIP
    Windows 10 Office 365
    Join Date
    Jan 2014
    Location
    Somerset, UK
    Posts
    5,925
    On the same point as the last post, see my example app: Folder Image Viewer (isladogs.co.uk)
    Colin, Access MVP, Website, email
    The more I learn, the more I know I don't know. When I don't know, I keep quiet!
    If I don't know that I don't know, I don't know whether to answer

Please reply to this thread with any new information or opinions.

Similar Threads

  1. Store photo URL but display the photo?
    By dniezby in forum Access
    Replies: 10
    Last Post: 01-18-2022, 03:37 PM
  2. Replies: 2
    Last Post: 06-28-2020, 07:57 AM
  3. Replies: 1
    Last Post: 11-21-2018, 05:02 PM
  4. Replies: 3
    Last Post: 10-13-2014, 05:48 PM
  5. Replies: 1
    Last Post: 09-04-2014, 11:10 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Other Forums: Microsoft Office Forums