1. Contributing User

    Join Date
    Apr 2010
    Rep Power

    Always Fail With Asp... :'(

    i am using this for web came snapshot capture and its works
    but i need this in classic asp... tried more then 10 way but always fail
    sometime file saved with 0kb file size, sometime NodeTypedValue write error...

    define('UPLOAD_DIR', '');
    $img = $_POST['gstphoto'];
    $img = str_replace('data:image/png;base64,', '', $img);
    $img = str_replace(' ', '+', $img);
    $data = base64_decode($img);
    $file = UPLOAD_DIR . uniqid() . '.png';
    $success = file_put_contents($file, $data);
    print $success ? $file : 'Unable to save the file.';
    now i want to convert this working php script in classic asp...
    but how don't know... please someone help me...
    Thanks in advance.
    if you found this post is useful click (right side on this reply ) and agree
  2. #2
  3. Guru
    ASP Adventurer (500 - 999 posts)

    Join Date
    May 2003
    Rep Power
    Unfortunately classic ASP doesn't have file uploading built in like PHP does.

    But there are some workarounds like using a component if your server has one for that or there is even some non-component ASP code to be found...
    J. Paul Schmidt
    www.Bullschmidt.com - Freelance Web and Database Developer
    www.Bullschmidt.com/DevTip.asp - Classic ASP Design Tips

Similar Threads

  1. Top banks say they not too big to fail
    By RSS_News_User in forum Business News
    Replies: 0
    Last Post: July 4th, 2012, 01:00 AM
  2. Border FAIL !!
    By Athono in forum Silverlight Programming
    Replies: 0
    Last Post: July 5th, 2011, 07:07 PM
  3. ASP: SQL WHERE LIKE condition fail
    By sinner8347 in forum ASP Development
    Replies: 2
    Last Post: February 9th, 2009, 07:54 AM
  4. fail to install vs.net
    By Tatiana in forum .NET Development
    Replies: 2
    Last Post: May 4th, 2004, 02:47 AM
  5. fail to install vs.net
    By Tatiana in forum .NET Development
    Replies: 2
    Last Post: May 3rd, 2004, 03:09 AM

IMN logo majestic logo threadwatch logo seochat tools logo