Skip to content
This repository has been archived by the owner on Jan 24, 2021. It is now read-only.

MemoryStream Copy to ResponseStream failed #2728

Open
1 of 3 tasks
leixu2txtek opened this issue Apr 5, 2017 · 2 comments
Open
1 of 3 tasks

MemoryStream Copy to ResponseStream failed #2728

leixu2txtek opened this issue Apr 5, 2017 · 2 comments

Comments

@leixu2txtek
Copy link

ms

the

ms.Copyto(s)

is failed to response the image

var bytes = ms.ToArray();
s.Write(bytes, 0, bytes.Length);

this is ok to response the image.

Where I am wrong ?

  • Nancy version: 2.0.0-clinteastwood
  • Nancy host
    • ASP.NET
    • OWIN
    • Self-Hosted
  • Environment (Operating system, version and so on): windows 10 14393.969
  • .NET Framework version: .net core 1.1
@jchannon
Copy link
Member

jchannon commented Apr 5, 2017 via email

@leixu2txtek
Copy link
Author

@jchannon ok, thx.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants