• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Getting csv file from Spring to Angular

Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi all,

I am  trying to send a CSV file from my Spring controller to Angular to show on my HTML page. My request gives a 200 but the content type is coming 0. I read other similar questions but was unable to solve my issue. I am really new in both Angular and Spring. Please help.

My Spring controller:

My Angular controller:

I am getting undefined when I try to print the response:
[Thumbnail for Capture.PNG]
Consider Paul's rocket mass heater.
    Bookmark Topic Watch Topic
  • New Topic