show picture

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • hareldo

    show picture

    hi,
    i wrote a code that open a picture and store it in a string.
    then its save the base_64 of this string in a jpeg file and then i can
    show this picture.
    but i want to show this picture without save it.
    how can i do this?? 
  • Luuk

    #2
    Re: show picture

    hareldo schreef:
    hi,
    i wrote a code that open a picture and store it in a string.
    then its save the base_64 of this string in a jpeg file and then i can
    show this picture.
    but i want to show this picture without save it.
    how can i do this??


    (i whish to express my thanks to Google..)

    --
    Luuk

    Comment

    • Jerry Stuckle

      #3
      Re: show picture

      hareldo wrote:
      hi,
      i wrote a code that open a picture and store it in a string.
      then its save the base_64 of this string in a jpeg file and then i can
      show this picture.
      but i want to show this picture without save it.
      how can i do this??
      >
      First of all, a jpeg is not base_64 encoded. You may give the file a
      ..jpeg extension, but it is not a jpeg file.

      You need to have an <img...statemen t in your HTML, and instead of
      loading the image directly you need to call a PHP script. The script
      will then create the image and display it, (with the correct content
      type set in the header).



      Should get you started on some tutorials on how to use the gd functions.
      See especially the third one down (from zend). A little verbose with
      too few examples, imho, but quite detailed and accurate.

      --
      =============== ===
      Remove the "x" from my email address
      Jerry Stuckle
      JDS Computer Training Corp.
      jstucklex@attgl obal.net
      =============== ===

      Comment

      • hareldo

        #4
        Re: show picture

        First of all, a jpeg is not base_64 encoded.  You may give the file a
        .jpeg extension, but it is not a jpeg file.
        >
        You need to have an <img...statemen t in your HTML, and instead of
        loading the image directly you need to call a PHP script. The script
        will then create the image and display it, (with the correct content
        type set in the header).
        >

        >
        Should get you started on some tutorials on how to use the gd functions.
          See especially the third one down (from zend).  A little verbose with
        too few examples, imho, but quite detailed and accurate.
        >
        i think its base_64 because when i do base_64 and save it in a jpeg
        file in the server,its save it successful and after this i can see it.

        Comment

        • hareldo

          #5
          Re: show picture

          when i use the imageJpeg function,like this:

          imageJpeg($im," aa.jpg",100;
          the im var is store the image,its save it successful with the name
          aa.jpg in my server.but when i use when the second parameter is
          null,it suppose to show it,but instead of its just write it and i dont
          see any picture. 

          Comment

          • Jerry Stuckle

            #6
            Re: show picture

            hareldo wrote:
            when i use the imageJpeg function,like this:
            >
            imageJpeg($im," aa.jpg",100;
            the im var is store the image,its save it successful with the name
            aa.jpg in my server.but when i use when the second parameter is
            null,it suppose to show it,but instead of its just write it and i dont
            see any picture.
            >
            Please see the links I pointed you to.

            You cannot just output an image in the middle of an html page, and the
            links explain all how to do it.

            --
            =============== ===
            Remove the "x" from my email address
            Jerry Stuckle
            JDS Computer Training Corp.
            jstucklex@attgl obal.net
            =============== ===

            Comment

            Working...