Click here to Skip to main content
14,458,932 members

JavaScript

 
GeneralRe: Can ms blazor be next level of client-side coding Pin
Pete O'Hanlon5-Nov-19 21:40
communityengineerPete O'Hanlon5-Nov-19 21:40 
QuestionOpen base64 encoded pdf file using javascript Pin
Member 1286358021-Oct-19 5:16
MemberMember 1286358021-Oct-19 5:16 
AnswerRe: Open base64 encoded pdf file using javascript Pin
jkirkerx21-Oct-19 13:22
professionaljkirkerx21-Oct-19 13:22 
AnswerRe: Open base64 encoded pdf file using javascript Pin
Richard Deeming22-Oct-19 2:15
communityengineerRichard Deeming22-Oct-19 2:15 
GeneralRe: Open base64 encoded pdf file using javascript Pin
jkirkerx24-Oct-19 13:18
professionaljkirkerx24-Oct-19 13:18 
AnswerRe: Open base64 encoded pdf file using javascript Pin
Parth Munjpara23-Oct-19 0:11
MemberParth Munjpara23-Oct-19 0:11 
QuestionWant to download a zip file that's returned as FileStreamResult only, I could able to download in-memory using byte array but Pin
simpledeveloper17-Oct-19 14:27
Membersimpledeveloper17-Oct-19 14:27 
AnswerRe: Want to download a zip file that's returned as FileStreamResult only, I could able to download in-memory using byte array but Pin
jkirkerx21-Oct-19 13:11
professionaljkirkerx21-Oct-19 13:11 
Well, I had to Google around and read several different examples and explanations for how it works.
I basically searched "FileStreamResult" and this was the most popular answer for using "FileStreamResult".
According to the documentation, this will return a stream with the appropiate header info that will make it look like a download to the browser, and trigger the browser to prompt for a download.
return new FileStreamResult(stream, new MediaTypeHeaderValue("application/zip"))
{
  FileDownloadName = "application.zip"
};
If it ain't broke don't fix it
Discover my world at jkirkerx.com

GeneralRe: Want to download a zip file that's returned as FileStreamResult only, I could able to download in-memory using byte array but Pin
simpledeveloper21-Oct-19 14:16
Membersimpledeveloper21-Oct-19 14:16 
GeneralRe: Want to download a zip file that's returned as FileStreamResult only, I could able to download in-memory using byte array but Pin
jkirkerx22-Oct-19 8:21
professionaljkirkerx22-Oct-19 8:21 
GeneralRe: Want to download a zip file that's returned as FileStreamResult only, I could able to download in-memory using byte array but Pin
simpledeveloper22-Oct-19 9:56
Membersimpledeveloper22-Oct-19 9:56 
GeneralRe: Want to download a zip file that's returned as FileStreamResult only, I could able to download in-memory using byte array but Pin
jkirkerx23-Oct-19 7:55
professionaljkirkerx23-Oct-19 7:55 
GeneralRe: Want to download a zip file that's returned as FileStreamResult only, I could able to download in-memory using byte array but Pin
simpledeveloper24-Oct-19 14:25
Membersimpledeveloper24-Oct-19 14:25 
Questionhas been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource Pin
simpledeveloper15-Oct-19 14:05
Membersimpledeveloper15-Oct-19 14:05 
AnswerRe: has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource Pin
jkirkerx15-Oct-19 14:54
professionaljkirkerx15-Oct-19 14:54 
AnswerRe: has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource Pin
F-ES Sitecore15-Oct-19 23:14
mveF-ES Sitecore15-Oct-19 23:14 
AnswerRe: has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource Pin
simpledeveloper16-Oct-19 8:10
Membersimpledeveloper16-Oct-19 8:10 
QuestionTrying to download Zip files that's returned from Api React Pin
simpledeveloper14-Oct-19 10:00
Membersimpledeveloper14-Oct-19 10:00 
AnswerRe: Trying to download Zip files that's returned from Api React Pin
Richard Deeming14-Oct-19 10:38
communityengineerRichard Deeming14-Oct-19 10:38 
GeneralRe: Trying to download Zip files that's returned from Api React Pin
simpledeveloper14-Oct-19 12:45
Membersimpledeveloper14-Oct-19 12:45 
GeneralRe: Trying to download Zip files that's returned from Api React Pin
Richard Deeming15-Oct-19 2:24
communityengineerRichard Deeming15-Oct-19 2:24 
GeneralRe: Trying to download Zip files that's returned from Api React Pin
simpledeveloper15-Oct-19 7:31
Membersimpledeveloper15-Oct-19 7:31 
GeneralRe: Trying to download Zip files that's returned from Api React Pin
simpledeveloper15-Oct-19 9:59
Membersimpledeveloper15-Oct-19 9:59 
GeneralRe: Trying to download Zip files that's returned from Api React Pin
Richard Deeming16-Oct-19 8:49
communityengineerRichard Deeming16-Oct-19 8:49 
GeneralRe: Trying to download Zip files that's returned from Api React Pin
simpledeveloper17-Oct-19 7:53
Membersimpledeveloper17-Oct-19 7:53 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.