Git Product home page Git Product logo

Comments (9)

saucecontrol avatar saucecontrol commented on May 30, 2024

Thanks for the feedback, but I'm not following. The sample code is valid.

Are you saying the sample made you think you could only output to a file, or did you have a problem running it?

from photosauce.

eman1986 avatar eman1986 commented on May 30, 2024

Yes I get an error stating that I need to be using Stream and not FileStream. I copied the example on the readme and it gives me that same error.

from photosauce.

saucecontrol avatar saucecontrol commented on May 30, 2024

Stream is an abstract class, so you can't possibly pass one to anything. You need to use a concrete implementation of Stream, and FileStream is one such implementation. I can't imagine what's giving you the error you mentioned, unless you're using some other class called FileStream and not a System.IO.FileStream.

from photosauce.

eman1986 avatar eman1986 commented on May 30, 2024

I'm using System.IO.FileStream and still seeing that error, I'm attaching what VS is displaying to me.

cserror

from photosauce.

saucecontrol avatar saucecontrol commented on May 30, 2024

I'm baffled. The first overload in that list matches the method it says it can't resolve. I've just tried the example code in a new project, and it's working as expected. Here's my VS (tried it in 2015 and 2017, .NET 4.6 and .NET Core 1.1) showing it has resolved the correct (string, Stream, ProcessImageSettings) overload with those arguments.

image

I did find a problem with the nuget package, though. It has a frameworkAssembly reference to System.Runtime, which might be causing a conflict between versions of some of the System classes. If you're on the full .NET Framework, can you check your project references and see if System.Runtime is there? If you see it, try removing it.

from photosauce.

eman1986 avatar eman1986 commented on May 30, 2024

I do see System.Runtime in there, but it's not letting me remove it. I'm using .NET core 1.1 btw

from photosauce.

saucecontrol avatar saucecontrol commented on May 30, 2024

Ah, ok. it needs to be there for .NET Core. I'm still investigating. You on VS 2017?

from photosauce.

eman1986 avatar eman1986 commented on May 30, 2024

Yes, so interesting enough, it builds without error but I still see the error. I'm curious if ReSharper is the problem here. I tried it on another copy of VS and it seems to be fine.

I'm guessing ReSharper is just being super picky or maybe I discovered a bug :)

from photosauce.

saucecontrol avatar saucecontrol commented on May 30, 2024

Good to know. I reckon it's a conflict with resolving those System classes, but I'm not sure if ReSharper is at fault or if I've done something strange. I'll do a bit more testing. Thanks for the heads-up anyway.

from photosauce.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.