filestream Questions
2
Solved
I have a table which has one field that uses a filestream. When I attempt to insert the table I get this error
Cannot use TEXTIMAGE_ON when a table has no text, ntext, image, varchar(max), nvarcha...
Kumar asked 5/9, 2014 at 10:53
1
I'm monitoring an FTP folder for orders which I then read into string array for further processing before deleting the file.
On the whole is works but occasionally I get the following exception:
...
Follicle asked 16/3, 2018 at 7:7
8
Solved
I know how to encode / decode a simple string to / from base64.
But how would I do that if the data is already been written to a FileStream object. Let's say I have only access to the FileStream ...
Datcha asked 2/10, 2013 at 9:41
4
Solved
I'm saving an uploaded image using this code:
using (var fileStream = File.Create(savePath))
{
stream.CopyTo(fileStream);
}
When the image is saved to its destination folder, it's empty, 0 kb. ...
Bismuth asked 19/2, 2012 at 13:29
2
I need to know the fileName for the input file that is streamed from the input dir.
Below is the spark FileStreaming code in scala programming
object FileStreamExample {
def main(args: Array[St...
Chairborne asked 13/10, 2019 at 9:42
13
I have a database set up with FILESTREAM enabled on it (if you go to Properties\Advanced on the instance, it shows that FILESTREAM is enabled). I also ran the sp_configure script on it after doing ...
Giblets asked 13/1, 2014 at 14:7
5
Solved
I have Following Code in a Page_Load called function. When the Page is loaded the first time after starting Visual Studio, everything works out fine.
But any other opening call to the File after th...
Exposed asked 19/2, 2013 at 10:58
3
Can someone guide me on the best way to store images for my website. Im making my first MVC website, and i thought i would just start with a Image website with comments on those images..ect
Im dis...
Dermatome asked 28/6, 2013 at 9:47
5
I have been asked to do the following in C#:
/**
* 1. Create a MultipartPostMethod
* 2. Construct the web URL to connect to the SDP Server
* 3. Add the filename to be attached as a parameter to...
Pfister asked 2/12, 2013 at 2:24
2
Solved
Documentation says FileMode.OpenOrCreate "specifies that the operating system should open a file if it exists; otherwise, a new file should be created", which sounds like it will open the...
Careerism asked 25/8, 2018 at 19:1
4
Suppose I'm writing a couple of files to disk, between 2MB and 5GB.
What are sensible buffer values for the FileStream ?
Is it sensible to work with buffersizes of several megabytes, or should I s...
Declassify asked 7/12, 2009 at 21:23
3
I try to use Nodejs fs.read Method in Mac OS. However it doesn't work..
I use below source code
var fs = require('fs');
fs.open('helloworld.txt', 'r', function(err, fd) {
fs.fstat(fd, function(...
Highfalutin asked 10/8, 2014 at 14:5
4
Solved
Is there a query that would get me the total file size of the files that are in the FILESTREAM folder on the disk?
Openwork asked 23/2, 2011 at 3:9
8
Solved
I was wondering, if anyone could tell me how to point a StreamReader to a file inside the current working directory of the program.
E.g.: say I have program Prog saved in the directory "C:\ProgDir...
Bred asked 16/5, 2012 at 17:31
2
Solved
Sorry for the title, it might be a bit confusing but I don't know how I could have explained it better.
There are two files with .cat (catalog file) and .dat extensions. A .cat file contains the in...
Babara asked 26/4, 2022 at 17:5
8
Solved
I have read a similar post, but i just cant figure out the problem.
I have changed the windows permissions and changed routes.
When i try to save a file it throws me the exception:
Access to ...
Caldeira asked 9/10, 2011 at 20:48
3
Solved
I suppose my title isn't that clear.
I'll try to explain:
I can write and read a file using a FileStream
FileStream fs = new FileStream("C:\\Users\\Public\\text.txt", FileMode.OpenOrCreate, File...
Dc asked 27/11, 2011 at 19:35
6
Solved
I have two text files, Source.txt and Target.txt. The source will never be modified and contain N lines of text. So, I want to delete a specific line of text in Target.txt, and replace by an specif...
Impi asked 28/12, 2009 at 19:7
3
Solved
I'm making a simple file transfer sender and receiver app through the wire. What I have so far is that the sender converts the file into a byte array and sends chunks of that array to the receiver....
Opium asked 14/4, 2011 at 6:2
5
Solved
I wonder to know how can I make my .html project run not from file:// but as a localhost because one of the functions I've implemented requires getUserMedia which browsers instantly block, when loa...
Darrelldarrelle asked 1/9, 2015 at 13:5
4
I have this complicated code-base that is listening for FileCreated events on a certain folder. When the file is Created (which also includes moving a file to that folder), I want to read in that f...
Morril asked 12/2, 2014 at 20:48
4
Solved
I have a method that takes FileStream as input. This method is running inside a for loop.
private void UploadFile(FileStream fileStream)
{
var stream = GetFileStream();
// do things with stream
}...
Bulganin asked 17/8, 2015 at 19:35
2
Solved
I'm working with a file stream in C#. It's a storage cache, so if something goes bad writing the file (corrupted data, ...), I need to delete the file and rethrow the exception to report the proble...
Saylor asked 24/11, 2010 at 6:55
3
Solved
I have a file that I'm opening into a stream and passing to another method. However, I'd like to replace a string in the file before passing the stream to the other method. So:
string path = "C:/....
Breakfast asked 16/9, 2013 at 19:33
5
I have a stream that contains many pieces of data. I want to expose just a piece of that data in another stream. The piece of data I want to extract can often be over 100mb. Since I already have st...
Mossman asked 4/8, 2011 at 22:35
1 Next >
© 2022 - 2024 — McMap. All rights reserved.