Take advantage of our 8 new features with this new version. Learn more. Close and Don't Remind. Back to results. Print Share. Content feedback is currently offline for maintenance. Please try again in a few minutes. You have two options for importing feature classes when you right-click a geodatabase or feature dataset:. If you're importing a number of feature classes into a geodatabase and they require the same settings at import, you can choose the Feature Class es option to run the Feature Class To Geodatabase tool and import them at the same time.
One feature class is created for each feature class you import. On the other hand, other feature classes you import may require individual settings at import, such as field mapping, custom configuration keyword, or spatial index. If this is the case, you can choose Feature Class for more control over the properties of the imported feature class.
If you have many feature classes to import and want to chain multiple tools together, you can create and run a model instead of manually repeating the import from the context menu. A model helps automate importing by allowing you to save and reuse environment settings and tool parameters. Once you've created a model, you can import data, edit the model to specify other input data, modify parameters, and rerun the model.
Learn more about models and model building Tip: The fields you create in the new feature classes are named the same as the fields you're importing. However, any invalid characters in the field names are automatically replaced. Post as a guest Name. Email Required, but never shown.
The Overflow Blog. Who owns this outage? Building intelligent escalation chains for modern SRE. Podcast Who is building clouds for the independent developer? Featured on Meta. Now live: A fully responsive profile. Reducing the weight of our footer. Visit chat. Linked 1. Add a comment. Active Oldest Votes. Also, if you know what file type you are sending, you can set response.
Improve this answer. Jakub Kubrynski 13k 4 4 gold badges 57 57 silver badges 82 82 bronze badges. Infeligo Infeligo This is pretty much what I was about to say, but you should probably also set the response type header to something appropriate for the file. Yep, just edited the post. I had various file types generated, so I left it to the browser to determine the content type of the file by its extension.
Here is a better solution: stackoverflow. Powerlord Spring method closes the streams, Apache one does not. There are debates if the Servlet response output stream should be closed in the Controller code or by the Servlet container Show 8 more comments. Scott Carlson Scott Carlson 3, 1 1 gold badge 14 14 silver badges 11 11 bronze badges.
This works. But the file. Is there a way to set the Content-Disposition header with this way? I didn't have a need for that, but I think you could add HttpResponse as a parameter to the method, and then "response. Show 9 more comments. You should be able to write the file on the response directly.
Something like response. Francis what if your application downloads different file types? Lobster's answer enables you to dynamically set the content disposition. I guess not, because it's not scalable. We are currently supporting a dozen types of resources. We might support more file types based on what users want to upload in that case we might end up with so many end points essentially doing the same thing.
IMHO there has to be only one download end point and it handles multitude of file types. Francis — Rose. Ralph Ralph k 49 49 gold badges silver badges bronze badges. FaisalFeroz: yes this is right, but the file document is anyway created in memory see the question: "PDF needs to be generated within the code".
Anyway - what is your solution that overcome this problem? You may also use ResponseEntity which is a super of HttpEntity which allows you to specify the response http status code. Is there a reason why you are replacing whitespaces with underscore in the filename?
0コメント