Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Oct 2012
    Location
    Princeton
    Posts
    0
    Thanks
    0
    Thanked 0 Times in 0 Posts

    New Member Introduction.

    Hello Good Morning Coders,

    There is no section for introducing new members in this forum, So I am continuing my introducing myself from this section. Myself Emily Johnson from Princeton, NJ. By profession I am software Developer and Web Developer. I am here to share my experience and problems.

    Thanks
    Emily

  • #2
    Regular Coder Redcoder's Avatar
    Join Date
    May 2012
    Location
    /dev/null
    Posts
    332
    Thanks
    2
    Thanked 47 Times in 46 Posts
    Welcome Emily. Good to have you here.

  • #3
    New to the CF scene
    Join Date
    Oct 2012
    Posts
    0
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Emily,

    Perhaps you can help me, I am looking for a transalation between PHP and C# for the following code:

    foreach($files as $name => $file) {
    $body .= '--' . $boundary . "\r\n";
    $body .= 'Content-Disposition: form-data; name="'.$name.'"; filename="'.$file['name'].'"' . "\r\n";
    $body .= 'Content-Type: application/octet-stream' . "\r\n";
    #$body .= 'Content-Length: ' . strlen($file['content']) . "\r\n";
    #$body .= 'Content-Transfer-Encoding: binary' . "\r\n";
    $body .= "\r\n";
    $body .= $file['content'] . "\r\n";
    }

    I am not sure what should go $file['content'] as this would normally be binary array. Regards,

    Martin


  •  

    Posting Permissions

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