SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Addict ketting00's Avatar
    Join Date
    Jul 2011
    Posts
    310
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    How do I save file into database if I got data like this

    Hi,

    Bellow is the data I've sent through a form via javascript to PHP page. I grab the image from flash player on the browser and want to insert file name into database and the image into photo folder. How do I do this? Thanks
    Code:
    data:image/webp;base64,UklGRlIIAABXRUJQVlA4IEYIAAASOQCdASoEAZYAPm0qkEWiBhLdq4gBsSxNnr/ZLXdAU71Xo30Mdqpr6xJ/WaqVcbkUf2u5irzv7LK7H71P+gsKL+ZH2p+Ad++IH4lnqAU9200dUdtuHpmjCDsr0Cy2edYMrxuQA7y3VVHEfn1qMZ3uqB7Q8+dvTJzjzRWiwstxDdMNQtFovXh9Gr6S/vFidzWkArtFkTWHp0I57sRcsXlSg5ZrdJIXBmjMoOakoptApmaRLhUcDce4czb0bWfJNTClzX0hDYcEFzX4zoRCDKweybg5Ie3vXRmMxqOtn28y7cR7SYpDqX2qBBPBK9I+ifLhg229cJVlQCxWpNVPg0y4jQtnA/6lU+l5Yu1nfEXtJbunEOTdVKL+WjnHimDWIX5sxlCGe8eyU/+2///55EXJ+314KAZgwwgjwbm/dltD6LxSdj39yoy8L9kWsq+SXVKs1n9lJHTbGQVMsw/8tKsGtvW40vsIgPUpckLJ/jxPzcYdRTl5sk72HhdPbbYTD6MqzOYDC/PAhpOpag4hUtQ9GeZxjdFb+Uwsyet/sCEYyzLm8/R/vCzYcEjqAREgtPsJuViNIKCk7cCQhLBycHXLmwxtYOTwapkp2JBCSpme9gAA/uuL+wL48UcAceZZpM1AOspawNV5+jh8PFqAW5W5gJRuMlPx97JuHtwGL6/wJJoAqjgKJ7Bu42RdGbh7xoVLUvWHydq8Ja7fKCff/H/C3hWpqKxb0t5CYVsVqPlZVKKNNrdPOEgMdFbJetDNNo1OlD7xcbfOLWpILRYsUpGmyODh3l9mLv8WGgx8ZKcVJ2nNj9j/zi3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pqeLbbiay9OHgmDNwZrb2rC9fewODPi+h2C0cQkx7QNTefQT66RI6LCuHDcK045aeokDrhcFz16rydVE1cpKh6+0p7670+Zo/g3oeChcB+k3aEn4DqNdMjcvjv9Y0Jyp+Q9NUJyte9VXwG7/DGxDExIDd28MMQmE97xEVjbC5u3VA2xFD5h1s8H6gpUbkU8XQ7Xgl4UHUSefXKXFBosV0lWp5GAI5u5+FwlGnpR03lnHeUbuJ+d4TpDW11fGKoryjwS4VgX1xI6NtabYdlUpZXP8qfYPTPkMX61T+BKwa0xQ24myAKQ5VcRKkhIolwqoHj7EC00duyEMLXLgsUtc3INQZY3Gl9OUY7+T3N6x+zUpsFLAqxXAhhOkQdOhwONuZAQBw0sfKknw176QJQxljnpgNlenJTCQH453598gryhVeHAIWdJH1lM+2iJd9gGYfQ07923nUbfAVNKmmyQJEhE2lXLTUdrCjNezsp87eTJbFpnqm3LOvDb+aY6gjVz5QVjJbwJ5X+riGZ5KcRwFihuLWlV2Y9hRE+VWR2080mNqCNsi08gvXZHgQIMYlFG5TnNksMjT9/knjYpxqSpF8B+FLxL1ttpUFxPJVOPA8MeQEvpT5gvbr6MqBrfPaOyi+EVvt/wQUzR7ARBcMu96Jp6gBNXMiJsKH6s8DL9anWmCPUsTrq8a7hn1BoURi/sx3CpMzEGHJpd+bwh8ak2rOJx+h5sIyeWvrgB28rjMzi+sQef3BIxEWEFn5fK0hYA9ZyXMyJfhxVLeG/em/LzH8HGnczkMJbTktNpnzpF7NwS6je5BM8PDRMQxdMdN55TQaH2NLC3N8hiUw+aZx7+EWIH+6B9BuD2/Wa8Bz+X6NWUfSPMAbWftEP8+K7iicuL8EYutHAAA=

  2. #2
    SitePoint Addict ketting00's Avatar
    Join Date
    Jul 2011
    Posts
    310
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    Never mind I know how to render it.

  3. #3
    SitePoint Member
    Join Date
    Aug 2012
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    its usually recommended to store name and path of the file in db.


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
  •