Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
D

DEVOXE

@DEVOXE
About
Posts
1
Topics
0
Shares
0
Groups
0
Followers
0
Following
0

Posts

Recent Best Controversial

  • HttpPostedFileBase and locking...
    D DEVOXE

    Hi daviiie; I have exactly the same issue and tried this, thinking SaveAs locking the files as you did but id didn't work, so something else is locking the files:

    // Request.Files[i].SaveAs(fileName_save);

    using (FileStream fs = new FileStream(fileName_save, FileMode.Create))
    {
    byte[] bytes = new byte[Request.Files[i].InputStream.Length];
    Request.Files[i].InputStream.Read(bytes, 0, (int)Request.Files[i].InputStream.Length);
    fs.Write(bytes, 0, bytes.Length);
    fs.Close();
    }

    Did you have any progress for the issue? Thanks.

    C# asp-net sysadmin architecture help tutorial
  • Login

  • Don't have an account? Register

  • Login or register to search.
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups