filestream Questions

3

Solved

I have tried the FILESTREAM feature for MSSQL (2008R2 Data Center) on a local database, to experiment. The real database is running on a server. I have setup the whole FILESTREAM, using this query:...
Septemberseptembrist asked 7/11, 2014 at 13:25

3

Solved

Given a System.IO.FileStream object, how can I get the original path to the file it's providing access to? For example, in the MyStreamHandler() function below, I want to get back the path of the ...
Hirundine asked 22/7, 2009 at 14:24

1

Solved

ASP.Net Core returns a 500 server error from a FileStreamResult when using MemoryStream to write into PDF public async Task <Stream> DownloadDocumentInfoAsPdfAsync(User loggedInUser) { ...
Scale asked 24/6, 2020 at 13:46

5

I'm building OpenPyXL into an application that expects a string containing the content of the excel file, for it to write via file stream. From my investigation into the OpenPyXL source code, it d...
Tristantristas asked 12/12, 2011 at 3:32

3

How can I download a PDF and store to disk using vb.NET or C#? The URL (of the PDF) has some rediection going on before the final PDF is reached. I tried the below but the PDF seems corrupted whe...
Bunchy asked 26/5, 2010 at 14:26

4

Solved

I want my program to read a text file all characters 1 by 1 and whereever it finds a double-quote ("), it adds a semicolon before that inverted comma. For eg we have a paragraph in a text file...
Rightward asked 17/5, 2013 at 21:41

2

Solved

I mean to use fdopen FILE *fdopen(int fd, const char *mode); In man pages, it is stated that "The mode of the stream (one of the values "r", "r+", "w", "w+", "a", "a+") must be compatible with t...
Stephniestepladder asked 20/5, 2020 at 9:15

4

Solved

I'm using Filestream for read big file (> 500 MB) and I get the OutOfMemoryException. I use Asp.net , .net 3.5, win2003, iis 6.0 I want this in my app: Read DATA from Oracle Uncompress file us...
Harrietharriett asked 29/7, 2010 at 13:17

1

Solved

I am trying to generate a QR-code on an express request. It takes the value from the URL parameter, and returns the QR-Code using a filestream as a raw image. const express = require('express'); c...
Mishandle asked 22/1, 2020 at 16:15

2

I've been searching for a while and while it should be simple, I just can't get it to work. Based on examples I've seen, this is where I got so far: SomeAppService.cs public async Task<FileStr...
Genuflection asked 30/1, 2020 at 21:47

5

Solved

With SQL Server 2008 SP1, I've removed the only table that had a Filestream associated with it but each time I attempt to do the following: alter database ConsumerMarketingStore remove file CMS_Jo...
Coolie asked 15/2, 2010 at 23:11

2

Solved

This is updated question, there used to be a bug in my code I would like to be able to send chunks of data over to the client. Anything will be appreciated. Is there a way to provide to asp.ne...
Cavitation asked 6/2, 2018 at 15:7

3

Solved

I have the following code block which is giving me a headache. Logically it should work as I am using the filestream providing the lock within the using statement. When it gets to the line that cr...
Microbarograph asked 4/12, 2012 at 7:58

1

Solved

I have an API that takes a binary file stream. I am able to hit the API using postman. Now on the server-side, the content of XML is in string object, So I have created stream first then posted it...
Dextroamphetamine asked 22/11, 2019 at 14:27

3

Solved

I am trying to read an IFormFile received from a HTTP POST request like this: public async Task<ActionResult> UploadDocument([FromForm]DataWrapper data) { IFormFile file = data.File; str...
Megan asked 22/11, 2019 at 8:42

8

Solved

During the serialization we can use either memory stream or file stream. What is the basic difference between these two? What does memory stream mean? using System; using System.Collections.Gener...
Rollick asked 16/11, 2011 at 18:41

2

Solved

I have to refactor a VB6 program to C# and am stuck at understanding the following lines: Set myFileSystemObject = New FileSystemObject Set myTextStream = myFileSystemObject.OpenTextFile("myTextFi...
Carrissa asked 4/12, 2012 at 11:12

6

I want to both read from and write to a file. This doesn't work. static void Main(string[] args) { StreamReader sr = new StreamReader(@"C:\words.txt"); StreamWriter sw = new StreamWriter(@"C:\w...
Wangle asked 3/3, 2009 at 9:22

1

Solved

I want report progress of encrypting file this is my code how can I do this? using (FileStream destination = new FileStream(destinationFilename, FileMode.CreateNew, FileAccess.Write, FileShare.Non...
Antiperistalsis asked 9/8, 2019 at 14:26

7

Solved

I understand that .NET FileStream's Flush method only writes the current buffer to disk, but dependent on Windows' disk driver and the hard disk firmware this is no guarantee that the data is actua...
Sophey asked 20/12, 2008 at 13:32

6

Solved

I have this code that saves a pdf file. FileStream fs = new FileStream(SaveLocation, FileMode.Create); fs.Write(result.DocumentBytes, 0, result.DocumentBytes.Length); fs.Flush(); fs.Close(); It ...
Doris asked 19/4, 2010 at 20:0

3

Solved

I want to play video in browser using asp.net core in html I have <video width="320" height="240" controls> <source src="http://localhost:55193/api/VideoPlayer/Download" type="video/m...
Ferrari asked 14/7, 2018 at 11:47

3

Solved

I don't understand what I'm doing wrong here. I generate couple of memory streams and in debug-mode I see that they are populated. But when I try to copy MemoryStream to FileStream in order to save...
Filtration asked 12/9, 2013 at 13:45

2

Solved

I need to upload a file using Stream (Azure Blobstorage), and just cannot find out how to get the stream from the object itself. See code below. I'm new to the WebAPI and have used some examples. ...
Harilda asked 17/7, 2014 at 14:44

1

Solved

I have a question and I can't find a reason for it. I'm creating a custom archive file. I'm using MemoryStream to store data and finally I use a FileStream to write the data to disk. My hard disk ...
Prognostic asked 11/2, 2019 at 7:3

© 2022 - 2025 — McMap. All rights reserved.