Closed Thread
Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 48

Thread: Tutorial: Storing Images in MySQL with PHP

  1. #31
    Filips is offline Newbie
    Join Date
    Jul 2009
    Posts
    6
    Rep Power
    0

    Re: Tutorial: Storing Images in MySQL with PHP

    Thank you very very much.I will try this code.Thank you again.

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #32
    jpiche is offline Newbie
    Join Date
    Aug 2009
    Location
    Minneapolis
    Posts
    16
    Rep Power
    10

    Re: Tutorial: Storing Images in MySQL with PHP

    Also, if you have a limited number of small images being stored in the table, this technique could also be used to take advantage of mysql's cache--maybe.

  4. #33
    Filips is offline Newbie
    Join Date
    Jul 2009
    Posts
    6
    Rep Power
    0

    Re: Tutorial: Storing Images in MySQL with PHP

    Thank you very much.

  5. #34
    ssSuave is offline Newbie
    Join Date
    Jan 2009
    Posts
    12
    Rep Power
    0

    Re: Tutorial: Storing Images in MySQL with PHP

    Hi thanks again for your help

    So my upload form is working perfectly on Safari and FF but it fails to work on IE. The image just does not get uploaded.
    It is really annoying and I cannot figure it out. I have tried searching for an answer on google but couldn't find anything. I know i am not the only one since there were other people who had the same problem but I couldn't find any solutions. I read something about how instead of "enctype" there should be "encoding" for IE but i don't know how to integrate it. I would Really appreciate your help.

    Thank you in advance

  6. #35
    Jordan Guest

    Re: Tutorial: Storing Images in MySQL with PHP

    Hey ssSuave,
    Sure, I'll be glad to help. What version of IE are you using and did you change the code in any way? If so, can you post it?

  7. #36
    phillw's Avatar
    phillw is offline Learning Programmer
    Join Date
    Aug 2009
    Location
    Northwest England (UK)
    Posts
    82
    Blog Entries
    1
    Rep Power
    0

    Thumbs up Re: Tutorial: Storing Images in MySQL with PHP

    Thanks for the tutorial, between yourself and Jaan - it's just what I need

    Regards,

    Phill.

  8. #37
    phillw's Avatar
    phillw is offline Learning Programmer
    Join Date
    Aug 2009
    Location
    Northwest England (UK)
    Posts
    82
    Blog Entries
    1
    Rep Power
    0

    Red face Re: Tutorial: Storing Images in MySQL with PHP

    I said I'd be back !! - lol

    After a little head scratching, i realised blob is limited to 64k - So i changed to mediumblob (16Mb) and all is well.

    Now the $64,000 question - Obviously, i don't want to be firing down lots of pics at this resolution (some of them are 1:1 scale engineering drawings, that may need to be printed). They are about 200k in size.

    I see MySQL has a function to display thumb-nails - Am i better using this, or would it better to store a low-res version of the image in the database ?

    I'm guessing saving the images at 92dpi for display purposes, and 'persueding' the code to switch over to the larger image when I select printer as the output would be logical. But before I commit to one way - can you suggest which path I should follow ?

    Depending on the recommendation, it makes my next question of how to tell the display program which image to choose. My two CSS's may have to come to my help, here !!!

    Once again, thanks for a well written and easy to follow tutorial - It didn't take very long to work out why the images weren't saving - and the ammendment was made easy owing to your clear commenting & use of variable names.

    Regards,

    Phill.

  9. #38
    Join Date
    Apr 2009
    Location
    Uppsala, Sweden
    Posts
    9,547
    Blog Entries
    5
    Rep Power
    98

    Re: Tutorial: Storing Images in MySQL with PHP

    Thanks Jordan, this helped me. At last I will be able to +rep you

  10. #39
    Jordan Guest

    Re: Tutorial: Storing Images in MySQL with PHP

    You are very welcome and thank you.

  11. #40
    ezcat is offline Learning Programmer
    Join Date
    Nov 2008
    Posts
    39
    Rep Power
    0

    Re: Tutorial: Storing Images in MySQL with PHP

    Need some education. I looked around but didn't find an answer I understood or it doesn't matter anyway.

    On this line:
    <input name="image" accept="image/jpg" type="file">

    My question is; what does accept="image/jpg" do for me? I can use this same code to upload jpg or pdf files. Should I worry about this to upload different file types?

    Thanks,
    Jon

Closed Thread
Page 4 of 5 FirstFirst ... 2345 LastLast

Thread Information

Users Browsing this Thread

There are currently 11 users browsing this thread. (0 members and 11 guests)

Similar Threads

  1. storing images in database
    By ravi951 in forum Database & Database Programming
    Replies: 6
    Last Post: 08-21-2011, 03:11 PM
  2. Replies: 213
    Last Post: 04-14-2011, 07:57 PM
  3. Beginner Storing images in XML file - Part II - Displaying image
    By Jaan in forum PHP Tutorials
    Replies: 6
    Last Post: 01-04-2011, 08:35 PM
  4. storing and load images using linq to sql
    By aglayo2010 in forum C# Programming
    Replies: 0
    Last Post: 09-25-2010, 08:40 PM
  5. Replies: 2
    Last Post: 07-16-2009, 12:48 PM

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts