Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6888961
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T06:05:41+00:00 2026-05-27T06:05:41+00:00

I have a initiative where I need to take in documents and convert them

  • 0

I have a initiative where I need to take in documents and convert them into images in a WCF application. When a file such as word document is passed through the stream, I will get multiple images for the document, i.e one image for each page in the document.

When I want to return these multiple images back to the client. Whats a good way to return all these files through the stream? I also need to tell the client what the names of the files would be and how many files I am returning, whats a good way to do that?

This is my first time working with WCF/web services.

I also need to consider how long a conversion is taking, if its taking too long or creating too many images I need to get back with an error. Is using SOAP faults a good way to tell the client?

Do I just make an array of byes and return the array to the client? or Do I combine all the images into one stream and return it? If the size of the stream is too big (i.e more than 2 MB) wouldn’t it have problems(slow) transferring the files?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T06:05:42+00:00Added an answer on May 27, 2026 at 6:05 am

    You can transfer streams of any size and you shoudl probably just write the stream directly. To combine multiple files in a stream I think the easiest thing would be to create a zip file containing all content and sent that.

    Your method signature should simply return a Stream which WCF will sent directly to the underlying binding. There are some limitations on which bindings you can use, but WebHttpBinding for one supports it.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Hi I have an initiative of converting bunch of different formats such as Word,
I have a traditional RDBMS based PHP app that I need to convert over
I have a class: class One def initialize; end end I need to create
I have a struct that I initialize like this: typedef struct { word w;
Say, I have such classes hierarchy: public interface IRepository { } public class SomeSimpleRepository
I have an application where many unit tests use a real connection to an
I need to create a GUI application with Tkinter that requires a lot of
I am writing a tool take performs a task on text file. The task
OK, here is my problem. I need to take a array of Strings and
I have a distributed application which polls for commands from a central server and

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.